﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Kingdee_LongJX_PlugIn.Utils
{
    public class Config
    {
        public static string BD_MATERIAL = "BD_MATERIAL";
        public static string saleFormId = "QUDE_BiddingSalesOrder";
        public static string purchaseFormId = "QUDE_BiddingPurchaseOrder";
        public static string transFormId = "ora_CompetitiveTransaction";
        public static string OUTSTOCK = "SAL_OUTSTOCK";
        public static string InStock = "STK_InStock";
        public static string address = "https://wine-brokerage.com/shop/v1/news/createK3News";
        public static string biddingTradeDealSuccess = "https://wine-brokerage.com/shop/v1/news/biddingTradeDealSuccess";

        #region purchaseStr
        public static string purchaseStr = "{" +
                    "    \"NeedUpDateFields\": [],\n" +
                    "    \"NeedReturnFields\": [],\n" +
                    "    \"IsDeleteEntry\": \"true\",\n" +
                    "    \"SubSystemId\": \"\",\n" +
                    "    \"IsVerifyBaseDataField\": \"false\",\n" +
                    "    \"IsEntryBatchFill\": \"true\",\n" +
                    "    \"ValidateFlag\": \"true\",\n" +
                    "    \"NumberSearch\": \"true\",\n" +
                    "    \"InterationFlags\": \"\",\n" +
                    "    \"Model\": {\n" +
                    "        \"FID\": 0,\n" +
                    "        \"FApplicationDate\": \"发布日期\",\n" +
                    "        \"FApplicationOrgId\": {\n" +
                    "            \"FNumber\": \"发布区域\"\n" +
                    "        },\n" +
                    "        \"FBCurrencyId\": {\n" +
                    "            \"FNumber\": \"结算币别\"\n" +
                    "        },\n" +
                    "        \"F_QUDE_Merchant\": {\n" +
                    "            \"FNUMBER\": \"商家信息\"\n" +
                    "        },\n" +
                    "        \"F_QUDE_Stock\": {\n" +
                    "            \"FNUMBER\": \"出货仓库\"\n" +
                    "        },\n" +
                    "        \"FBeginDate\": \"开始日期\",\n" +
                    "        \"FEndDate\": \"结束日期\",\n" +
                    "        \"FPurchaseQty\": 采购瓶数,\n" +
                    "        \"FALLAmount\": 总金额,\n" +
                    "        \"FEntity\": [\n" +
                    "            {\n" +
                    "                \"FWineCode\": {\n" +
                    "                    \"FNUMBER\": \"酒款编码\"\n" +
                    "                },\n" +
                    "                \"FPurchaseSold\": 采购瓶数,\n" +
                    "                \"FPurchasePrice\": 采购价格,\n" +
                    "                \"FPurchaseCost\": 采购成本,\n" +
                    "                \"FServiceRate\": 服务费率,\n" +
                    "                \"FTotalAmount\": 总金额\n" +
                    "            }\n" +
                    "        ]\n" +
                    "    }\n" +
                    "}";
        #endregion

        public static string purchaseAllStr = "{" +
                    "    \"NeedUpDateFields\": [],\n" +
                    "    \"NeedReturnFields\": [],\n" +
                    "    \"IsDeleteEntry\": \"true\",\n" +
                    "    \"SubSystemId\": \"\",\n" +
                    "    \"IsVerifyBaseDataField\": \"false\",\n" +
                    "    \"IsEntryBatchFill\": \"true\",\n" +
                    "    \"ValidateFlag\": \"true\",\n" +
                    "    \"NumberSearch\": \"true\",\n" +
                    "    \"InterationFlags\": \"\",\n" +
                    "    \"Model\": {\n" +
                    "        \"FID\": 0,\n" +
                    "        \"FApplicationDate\": \"发布日期\",\n" +
                    "        \"FApplicationOrgId\": {\n" +
                    "            \"FNumber\": \"发布区域\"\n" +
                    "        },\n" +
                    "        \"FBCurrencyId\": {\n" +
                    "            \"FNumber\": \"结算币别\"\n" +
                    "        },\n" +
                    "        \"F_QUDE_Merchant\": {\n" +
                    "            \"FNUMBER\": \"商家信息\"\n" +
                    "        },\n" +
                    "        \"F_QUDE_Stock\": {\n" +
                    "            \"FNUMBER\": \"出货仓库\"\n" +
                    "        },\n" +
                    "        \"FTransactions\": \"交易状态\",\n" +
                    "        \"FTransactionCode\": \"交易编码\",\n" +
                    "        \"FTransQty\": 交易总数,\n" +
                    "        \"FSubmitDate\": \"成交日期\",\n" +
                    "        \"FBeginDate\": \"开始日期\",\n" +
                    "        \"FEndDate\": \"结束日期\",\n" +
                    "        \"FPurchaseQty\": 采购瓶数,\n" +
                    "        \"FALLAmount\": 总金额,\n" +
                    "        \"FEntity\": [\n" +
                    "            {\n" +
                    "                \"FWineCode\": {\n" +
                    "                    \"FNUMBER\": \"酒款编码\"\n" +
                    "                },\n" +
                    "                \"FPurchaseSold\": 采购瓶数,\n" +
                    "                \"FPurchasePrice\": 采购价格,\n" +
                    "                \"FPurchaseCost\": 采购成本,\n" +
                    "                \"FServiceRate\": 服务费率,\n" +
                    "                \"FTotalAmount\": 总金额\n" +
                    "            }\n" +
                    "        ],\n" +
                    "        \"F_QUDE_Entity\": [\n" +
                    "            {\n" +
                    "                \"FTransactionNo\": \"交易单号\",\n" +
                    "                \"F_QUDE_Qty\": 交易数量,\n" +
                    "                \"F_SALE_AMOUNT\": 交易价格,\n" +
                    "                \"FDATETIME\": \"交易日期\"\n" +
                    "            }\n" +
                    "        ]\n" +
                    "    }\n" +
                    "}";

        public static string saleAllStr = "{" +
                    "    \"NeedUpDateFields\": [],\n" +
                    "    \"NeedReturnFields\": [],\n" +
                    "    \"IsDeleteEntry\": \"true\",\n" +
                    "    \"SubSystemId\": \"\",\n" +
                    "    \"IsVerifyBaseDataField\": \"false\",\n" +
                    "    \"IsEntryBatchFill\": \"true\",\n" +
                    "    \"ValidateFlag\": \"true\",\n" +
                    "    \"NumberSearch\": \"true\",\n" +
                    "    \"InterationFlags\": \"\",\n" +
                    "    \"Model\": {\n" +
                    "        \"FID\": 0,\n" +
                    "        \"FApplicationDate\": \"发布日期\",\n" +
                    "        \"FApplicationOrgId\": {\n" +
                    "            \"FNumber\": \"发布区域\"\n" +
                    "        },\n" +
                    "        \"FBCurrencyId\": {\n" +
                    "            \"FNumber\": \"结算币别\"\n" +
                    "        },\n" +
                    "        \"F_QUDE_Merchant\": {\n" +
                    "            \"FNUMBER\": \"商家信息\"\n" +
                    "        },\n" +
                    "        \"F_QUDE_Stock\": {\n" +
                    "            \"FNUMBER\": \"出货仓库\"\n" +
                    "        },\n" +
                    "        \"FTransactions\": \"交易状态\",\n" +
                    "        \"FTransactionCode\": \"交易编码\",\n" +
                    "        \"FTransQty\": 交易总数,\n" +
                    "        \"FSubmitDate\": \"成交日期\",\n" +
                    "        \"FBeginDate\": \"开始日期\",\n" +
                    "        \"FEndDate\": \"结束日期\",\n" +
                    "        \"FSaleQty\": 销售瓶数,\n" +
                    "        \"FALLAmount\": 总金额,\n" +
                    "        \"FEntity\": [\n" +
                    "            {\n" +
                    "                \"FWineCode\": {\n" +
                    "                    \"FNUMBER\": \"酒款编码\"\n" +
                    "                },\n" +
                    "                \"FBottlesSold\": 销售瓶数,\n" +
                    "                \"FSellingPrice\": 销售价格,\n" +
                    "                \"FActualPrice\": 实际销售价,\n" +
                    "                \"FServiceRate\": 服务费率,\n" +
                    "                \"FTotalAmount\": 总金额\n" +
                    "            }\n" +
                    "        ],\n" +
                    "        \"F_OrderEntry_LK\": [\n" +
                    "            {\n" +
                    "                \"FTransactionNo\": \"交易单号\",\n" +
                    "                \"F_QUDE_Qty\": 交易数量,\n" +
                    "                \"F_Sale_AMOUNT\": 交易价格,\n" +
                    "                \"FDatetime\": \"交易日期\"\n" +
                    "            }\n" +
                    "        ]\n" +
                    "    }\n" +
                    "}";

        #region saleStr
        public static string saleStr = "{" +
                    "    \"NeedUpDateFields\": [],\n" +
                    "    \"NeedReturnFields\": [],\n" +
                    "    \"IsDeleteEntry\": \"true\",\n" +
                    "    \"SubSystemId\": \"\",\n" +
                    "    \"IsVerifyBaseDataField\": \"false\",\n" +
                    "    \"IsEntryBatchFill\": \"true\",\n" +
                    "    \"ValidateFlag\": \"true\",\n" +
                    "    \"NumberSearch\": \"true\",\n" +
                    "    \"InterationFlags\": \"\",\n" +
                    "    \"Model\": {\n" +
                    "        \"FID\": 0,\n" +
                    "        \"FApplicationDate\": \"发布日期\",\n" +
                    "        \"FApplicationOrgId\": {\n" +
                    "            \"FNumber\": \"发布区域\"\n" +
                    "        },\n" +
                    "        \"FBCurrencyId\": {\n" +
                    "            \"FNumber\": \"结算币别\"\n" +
                    "        },\n" +
                    "        \"F_QUDE_Merchant\": {\n" +
                    "            \"FNUMBER\": \"商家信息\"\n" +
                    "        },\n" +
                    "        \"F_QUDE_Stock\": {\n" +
                    "            \"FNUMBER\": \"出货仓库\"\n" +
                    "        },\n" +
                    "        \"FBeginDate\": \"开始日期\",\n" +
                    "        \"FEndDate\": \"结束日期\",\n" +
                    "        \"FSaleQty\": 销售瓶数,\n" +
                    "        \"FALLAmount\": 总金额,\n" +
                    "        \"FEntity\": [\n" +
                    "            {\n" +
                    "                \"FWineCode\": {\n" +
                    "                    \"FNUMBER\": \"酒款编码\"\n" +
                    "                },\n" +
                    "                \"FBottlesSold\": 销售瓶数,\n" +
                    "                \"FSellingPrice\": 销售价格,\n" +
                    "                \"FActualPrice\": 实际销售价,\n" +
                    "                \"FServiceRate\": 服务费率,\n" +
                    "                \"FTotalAmount\": 总金额\n" +
                    "            }\n" +
                    "        ]\n" +
                    "    }\n" +
                    "}";
        #endregion

        #region transStr
        public static string transStr = "{" +
                    "    \"NeedUpDateFields\": [],\n" +
                    "    \"NeedReturnFields\": [],\n" +
                    "    \"IsDeleteEntry\": \"true\",\n" +
                    "    \"SubSystemId\": \"\",\n" +
                    "    \"IsVerifyBaseDataField\": \"false\",\n" +
                    "    \"IsEntryBatchFill\": \"true\",\n" +
                    "    \"ValidateFlag\": \"true\",\n" +
                    "    \"NumberSearch\": \"true\",\n" +
                    "    \"IsAutoAdjustField\": \"false\",\n" +
                    "    \"InterationFlags\": \"\",\n" +
                    "    \"Model\": {\n" +
                    "        \"FID\": 0,\n" +
                    //"        \"F_PIYZ_BillTypeID\": {\n" +
                    //"            \"FNUMBER\": \"JJJYD\"\n" +
                    //"        },\n" +
                    "        \"F_PIYZ_Date\": \"发布日期\",\n" +
                    "        \"F_PIYZ_OrgId\": {\n" +
                    "            \"FNumber\": \"发布组织\"\n" +
                    "        },\n" +
                    //"        \"F_PIYZ_Base\": {\n" +
                    //"            \"FNUMBER\": \"客户\"\n" +
                    //"        },\n" +
                    "        \"F_QUDE_Buy\": {\n" +
                    "            \"FNUMBER\": \"买家商家名称\"\n" +
                    "        },\n" +
                    "        \"F_QUDE_Saler\": {\n" +
                    "            \"FNUMBER\": \"卖家商家名称\"\n" +
                    "        },\n" +
                    "        \"F_PIYZ_Date1\": \"开始日期\",\n" +
                    "        \"F_PIYZ_Date2\": \"结束日期\",\n" +
                    "        \"F_QUDE_PurAmount\": \"买家批发金额\",\n" +
                    "        \"F_QUDE_SaleAmount\": \"卖家采购金额\",\n" +
                    "        \"FSalesProfit\": \"销售利润\",\n" +
                    "        \"F_PIYZ_CreatorId\": {\n" +
                    "            \"FUserID\": 创建人\n" +
                    "        },\n" +
                    "        \"F_PIYZ_CreateDate\": \"创建日期\",\n" +
                    "        \"F_PIYZ_OrgId2\": {\n" +
                    "            \"FNumber\": \"发布区域\"\n" +
                    "        },\n" +
                    "        \"F_PIYZ_Amount1\": 批发总金额,\n" +
                    "        \"FEntity\": [\n" +
                    "            {\n" +
                    "                \"F_ora_Merchant\": {\n" +
                    "                    \"FNUMBER\": \"买家商家名称\"\n" +
                    "                },\n" +
                    "                \"F_PIYZ_Base1\": {\n" +
                    "                    \"FNUMBER\": \"商品编码\"\n" +
                    "                },\n" +
                    "                \"F_PIYZ_Qty\": 买家销售数量,\n" +
                    "                \"F_PIYZ_Price\": 买家批发价,\n" +
                    "                \"F_PIYZ_Amount\": 买家批发金额,\n" +
                    "                \"F_PIYZ_Qty2\": 买家采购数量\n" +
                    "            }\n" +
                    "        ],\n" +
                    "        \"FEntity1\": [\n" +
                    "            {\n" +
                    "                \"F_ora_MerchantM\": {\n" +
                    "                    \"FNUMBER\": \"卖家商家名称\"\n" +
                    "                },\n" +
                    "                \"F_PIYZ_Base11\": {\n" +
                    "                    \"FNUMBER\": \"商品编码\"\n" +
                    "                },\n" +
                    "                \"F_PIYZ_Qty3\": 卖家数量,\n" +
                    "                \"F_PIYZ_Price2\": 卖家采购价,\n" +
                    "                \"F_PIYZ_Amount4\": 卖家采购金额,\n" +
                    "                \"F_PIYZ_Qty21\": 卖家采购数量\n" +
                    "            }\n" +
                    "        ]\n" +
                    "    }\n" +
                    "}";
        #endregion


        #region STK_InStock
        public static string STK_InStock = "{\n" +
                "    \"NeedUpDateFields\":[\n" +
                "\n" +
                "    ],\n" +
                "    \"NeedReturnFields\":[\n" +
                "\n" +
                "    ],\n" +
                "    \"IsDeleteEntry\":\"true\",\n" +
                "    \"SubSystemId\":\"\",\n" +
                "    \"IsVerifyBaseDataField\":\"false\",\n" +
                "    \"IsEntryBatchFill\":\"true\",\n" +
                "    \"ValidateFlag\":\"true\",\n" +
                "    \"NumberSearch\":\"true\",\n" +
                "    \"InterationFlags\":\"\",\n" +
                "    \"Model\":{\n" +
                "        \"FID\":0,\n" +
                "        \"FBillTypeID\":{\n" +
                "            \"FNUMBER\":\"RKD01_SYS\"\n" +
                "        },\n" +
                "        \"FStockOrgId\":{\n" +
                "            \"FNumber\":\"组织\"\n" +
                "        },\n" +
                "        \"FDemandOrgId\":{\n" +
                "            \"FNumber\":\"组织\"\n" +
                "        },\n" +
                "        \"FPurchaseOrgId\":{\n" +
                "            \"FNumber\":\"组织\"\n" +
                "        },\n" +
                "        \"FOwnerTypeIdHead\":\"BD_Customer\",\n" +
                "        \"FOwnerIdHead\":{\n" +
                "            \"FNumber\":\"货主\"\n" +
                "        },\n" +
                "        \"F_QUDE_MERCHANT\":{\n" +
                "            \"FNUMBER\":\"商家\"\n" +
                "        },\n" +
                "        \"FSupplierId\":{\n" +
                "            \"FNUMBER\":\"供应商\"\n" +
                "        },\n" +
                "        \"FInStockFin\":{\n" +
                "            \"FSettleOrgId\":{\n" +
                "                \"FNumber\":\"组织\"\n" +
                "            }\n" +
                "        },\n" +
                "        \"FInStockEntry\":[\n" +
                "            {\n" +
                "                \"FMaterialId\":{\n" +
                "                    \"FNumber\":\"酒款\"\n" +
                "                },\n" +
                "                \"FRealQty\":采购数量,\n" +
                "                \"FPrice\":采购金额,\n" +
                "                \"FStockId\":{\n" +
                "                    \"FNumber\":\"仓库\"\n" +
                "                },\n" +
                "                \"FStockStatusId\":{\n" +
                "                    \"FNumber\":\"Normal\"\n" +
                "                },\n" +
                "                \"FOWNERTYPEID\":\"BD_Customer\",\n" +
                "                \"FRemainInStockQty\":采购数量,\n" +
                "                \"FOWNERID\":{\n" +
                "                    \"FNumber\":\"货主\"\n" +
                "                }\n" +
                "            }\n" +
                "        ]\n" +
                "    }\n" +
                "}";
        #endregion

        #region SAL_OUTSTOCK
        public static string SAL_OUTSTOCK = "{\n" +
                "    \"NeedUpDateFields\":[\n" +
                "\n" +
                "    ],\n" +
                "    \"NeedReturnFields\":[\n" +
                "\n" +
                "    ],\n" +
                "    \"IsDeleteEntry\":\"true\",\n" +
                "    \"SubSystemId\":\"\",\n" +
                "    \"IsVerifyBaseDataField\":\"false\",\n" +
                "    \"IsEntryBatchFill\":\"true\",\n" +
                "    \"ValidateFlag\":\"true\",\n" +
                "    \"NumberSearch\":\"true\",\n" +
                "    \"InterationFlags\":\"\",\n" +
                "    \"Model\":{\n" +
                "        \"FID\":0,\n" +
                "        \"FBillTypeID\":{\n" +
                "            \"FNUMBER\":\"XSCKD01_SYS\"\n" +
                "        },\n" +
                "        \"FSaleOrgId\":{\n" +
                "            \"FNumber\":\"组织\"\n" +
                "        },\n" +
                "        \"FCustomerID\":{\n" +
                "            \"FNumber\":\"货主\"\n" +
                "        },\n" +
                "        \"FStockOrgId\":{\n" +
                "            \"FNumber\":\"组织\"\n" +
                "        },\n" +
                "        \"FOwnerTypeIdHead\":\"BD_Customer\",\n" +
                "        \"SubHeadEntity\":{\n" +
                "            \"FSettleOrgID\":{\n" +
                "                \"FNumber\":\"组织\"\n" +
                "            },\n" +
                "            \"FExchangeTypeID\":{\n" +
                "                \"FNumber\":\"HLTX01_SYS\"\n" +
                "            }\n" +
                "        },\n" +
                "        \"FEntity\":[\n" +
                "            {\n" +
                "                \"FMaterialID\":{\n" +
                "                    \"FNumber\":\"酒款\"\n" +
                "                },\n" +
                "                \"FRealQty\":销售数量,\n" +
                "                \"FOwnerTypeID\":\"BD_Customer\",\n" +
                "                \"FOwnerID\":{\n" +
                "                    \"FNumber\":\"货主\"\n" +
                "                },\n" +
                "                \"FStockID\":{\n" +
                "                    \"FNumber\":\"仓库\"\n" +
                "                },\n" +
                "                \"FStockStatusID\":{\n" +
                "                    \"FNumber\":\"Normal\"\n" +
                "                },\n" +
                "                \"FSALUNITQTY\":销售数量,\n" +
                "                \"FSALBASEQTY\":销售数量\n" +
                "            }\n" +
                "        ]\n" +
                "    }\n" +
                "}";
        #endregion
    }
}
